﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Diagnostics;

using JavaSubstitutes;
using Sonar;

namespace Sprites
{
	public abstract class Scene: SoundListener
	{
		public SonarSoundEngine sound;
        public static bool[] keys = new bool[16];

		public void toggleKey(int key, bool isPressed)
		{
			//toggle key keys keydown keypress
            //Debug.WriteLine("Key: " + key.ToString() + " pressed: " + isPressed.ToString());
			keys[key] = isPressed;
		}

		public void setSound(SonarSoundEngine sound)
		{
			sound.setListener(this);
			this.sound = sound;
		}

		public  abstract void init();

		public  abstract void tick();

		//public  abstract void render(Graphics og, double alpha);
		public abstract void render(WriteableBitmap wbmp, double alpha);
	}
}